<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The parallel\Events\Input class</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="parallel-events.poll.html">« parallel\Events::poll</a></li>
      <li style="float: right;"><a href="parallel-events-input.add.html">parallel\Events\Input::add »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.parallel.html">parallel</a></li>
    <li>The parallel\Events\Input class</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.parallel-events-input" class="reference">

 <h1 class="title">The parallel\Events\Input class</h1>
 

 <div class="partintro"><p class="verinfo">(0.9.0)</p>

  <div class="section">
    <h2 class="title">Events Input</h2>
    <p class="para">
     An Input object is a container for data that the <span class="classname"><a href="class.parallel-events.html" class="classname">parallel\Events</a></span> object will write to 
     <span class="classname"><a href="class.parallel-channel.html" class="classname">parallel\Channel</a></span> objects as they become available. Multiple event loops may share an Input container - parallel does not 
     verify the contents of the container when it is set as the input for a <span class="classname"><a href="class.parallel-events.html" class="classname">parallel\Events</a></span> object.
    </p>
    <blockquote class="note"><p><strong class="note">注意</strong>: 
    <p class="para">
     When a <span class="classname"><a href="class.parallel-events.html" class="classname">parallel\Events</a></span> object performs a write, the target is removed from the input object as if 
     <span class="methodname"><a href="parallel-events-input.remove.html" class="methodname">parallel\Events\Input::remove()</a></span> were called.
    </p>
    </p></blockquote>
  </div>

  <div class="section" id="parallel-events-input.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">final</span>
      <span class="modifier">class</span> <strong class="classname">parallel\Events\Input</strong>
     </span>
     {</div>


    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="parallel-events-input.add.html" class="methodname">add</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$target</code></span>, <span class="methodparam"><span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>): <span class="type"><span class="type void">void</span></span></div>

    <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="parallel-events-input.remove.html" class="methodname">remove</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$target</code></span>): <span class="type"><span class="type void">void</span></span></div>

    <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="parallel-events-input.clear.html" class="methodname">clear</a></span>(): <span class="type"><span class="type void">void</span></span></div>


   }</div>


  </div>

 </div>
























<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="parallel-events-input.add.html">parallel\Events\Input::add</a> — Inputs</li><li><a href="parallel-events-input.clear.html">parallel\Events\Input::clear</a> — Inputs</li><li><a href="parallel-events-input.remove.html">parallel\Events\Input::remove</a> — Inputs</li></ul>
</div>
</div></div></body></html>